<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">应用签名列表</h1>
</div>
<div class="wrapper-md">
  <div class="panel panel-default">

    <div class="row wrapper" >
      <div class="col-lg-3">
        <div class="input-group" >
          <div class="input-group-btn" >
            <span class="btn btn-default">应用编码</span>
          </div>
          <input type="text" class="form-control" ng-model="appid">
        </div>
      </div>
      <div class="col-lg-3">
        <div class="input-group" >
          <div class="input-group-btn" >
            <span class="btn btn-default">签名URL</span>
          </div>
          <input type="text" class="form-control" ng-model="url">
        </div>
      </div>
      <button class="btn m-b-xs w-xs btn-success" ng-click="search()">搜索</button>
      <button class="btn m-b-xs w-xs btn-primary" ng-click="add()">添加URL</button>
      <button class="btn m-b-xs w-xs btn-primary" ng-click="back()">回到应用</button>
    </div>

    <div class="panel-body">
      <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
        style="display: table; width: 100%;table-layout:fixed;">
        <thead>
          <tr>
            <th style="width: 7%;text-align:center;">应用编码</th>
            <th style="width: 15%;text-align:center;">签名地址</th>
            <th style="width: 3%;text-align:center;">状态</th>
            <!-- <th style="width: 3%;text-align:center;">排序</th> -->
            <th style="width: 8%;text-align:center;">备注</th>
            <th style="width: 5%;text-align:center;">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="signurl in signurl_list">
            <td>{{signurl.appid}}</td>
            <td>{{signurl.url}}</td>
            <td align="center">{{signurl.state=='0'?'可用':'不可用'}}</td>
            <!-- <td align="center">{{signurl.sort}}</td> -->
            <td align="center">{{signurl.remarks}}</td>
            <td>
              <button type="button" class="btn btn-info btn-xs" ng-click="update(signurl)">编辑</button>
              <button type="button" class="btn btn-danger btn-xs" ng-click="delete(signurl)">删除</button>
            </td>
          </tr>
        </tbody>
      </table>

      <div class="text-right" style="background-color: white">
        <pagination 
            total-items="totalItems" 
            ng-model="currentPage" 
            ng-change="search()"
            previous-text="上一页"
            next-text="下一页"
            first-text="首页"
            last-text="尾页"
            max-size="5"
            boundary-links="true"
            rotate="false"
            items-per-page="itemsPerPage"
            class="m-t-none m-b"></pagination>
        </div>
    </div>
    
  </div>
</div>